/home/estudydev/workspace/eStudy_svn/web/photogallery/edit.php File Reference
Go to the source code of this file.
|
Namespaces |
| namespace | eStudy::PhotoGallery |
Enumerations |
| enum | PATH_TO_ROOT |
Functions |
| if(!isset($post['postid'])) | is_firstpost ($threadid, $postid) |
Variables |
| | if (isset($_POST['Cancel'])) |
| | $gSettings = new GallerySettings() |
| | $newpost ['posttext'] = (isset($_POST['newpost']) ? $_POST['newpost']['posttext'] : '') |
| | $picquoteedit = "" |
| | $navpath = 'Bildeintrag editieren' |
if($g_user['userID']==0)
errormessage("Fehler"Nur
registrierte eingeloggte
Benutzer k & | ouml |
| nnen Beitr & | auml |
| ge | editieren |
| | if ($thread['threadclosed']==1) if(!$P->has_permission(P_EDITCLOSED)) errormessage('Fehler' |
| | $r_post = forum_query("SELECT postid, posttext, userID, threadid, postcode, postsmilies, posttime, postfilename, postfilesavename, postfilesize FROM forum_post WHERE postid='$post[postid]'") |
| | $post = mysql_fetch_array($r_post) |
| | $post ['threadtopic'] = Data::toHTML($thread['threadtopic'], false) |
| | $post ['posttext'] = Data::toHTML($post['posttext'], false) |
| | $firstpost = is_firstpost($thread['threadid'], $post['postid']) |
| | $r_author = forum_query("SELECT userid FROM forum_thread WHERE threadid = $post[threadid]") |
if($author['userid']==$_SESSION['userid']||$_SESSION['usergroup']==1||($_SESSION['usergroup']==3
&&$_SESSION["course"] > 0)) if($P->
has_permission(P_EDITTOPIC))
else | $post ['printtopic'] = $post['threadtopic'] |
Enumeration Type Documentation
relativer Pfad zum Root des Portals
Definition at line 52 of file edit.php.
Function Documentation
| if (!isset($post['postid'])) is_firstpost |
( |
$ |
threadid, |
|
|
$ |
postid | |
|
) |
| | |
- Parameters:
-
- Returns:
- unknown_type
HTML-Fuss und unteres Menue
HTML-Fuss und unteres Menue
Definition at line 81 of file edit.php.
Variable Documentation
| $firstpost = is_firstpost($thread['threadid'], $post['postid']) |
Einbinden der Settings Funktionen Konfigurationsdatei TinyMCE
Definition at line 66 of file edit.php.
| $newpost['posttext'] = (isset($_POST['newpost']) ? $_POST['newpost']['posttext'] : '') |
| if ($author['userid']==$_SESSION['userid']||$_SESSION['usergroup']==1||($_SESSION['usergroup']==3 &&$_SESSION["course"] > 0)) if($P->has_permission(P_EDITTOPIC)) else $post['printtopic'] = $post['threadtopic'] |
| $post['posttext'] = Data::toHTML($post['posttext'], false) |
| $post['threadtopic'] = Data::toHTML($thread['threadtopic'], false) |
| $post = mysql_fetch_array($r_post) |
| $r_author = forum_query("SELECT userid FROM forum_thread WHERE threadid = $post[threadid]") |
| $r_post = forum_query("SELECT postid, posttext, userID, threadid, postcode, postsmilies, posttime, postfilename, postfilesavename, postfilesize FROM forum_post WHERE postid='$post[postid]'") |
| if($thread['threadclosed']==1) if(!$P->has_permission(P_EDITCLOSED)) errormessage('Fehler' |
| if(isset($_POST['Cancel'])) |
Initialisierungsdatei (Einstellungen, Einbindung von Klassen, Session-Start) Ausgabe des HTML-Kopfes und der Menues
Definition at line 55 of file edit.php.
| if ($g_user['userID']==0) errormessage("Fehler" Nur registrierte eingeloggte Benutzer k& ouml |